<html>
  <head>
    <title>Listing 2.4:Handling a JavaScript Event</title>

  </head>
  <body onLoad="say_goodbye()">
    <h2>This is header 2</h2>
  </body>

</html>
    <script language="JavaScript" type="text/javascript">
      <!--
      function say_goodbye(){
	alert("Thanks for visiting my page.Y'll come back now,yuh hear?")
      }
      //-->
    </script>
